﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="HappyCourseSrhForm.aspx.cs" Inherits="App_Input_HappyCourseSrhForm" ValidateRequest="false"
    Title="亲和学堂课程一览" %>
<%@ Import Namespace="Shpm.App.Input.Bean" %>
<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script language="javascript" type="text/javascript">
        function openActionDetail(actionId){
            var url  = "../Input/HapppyActionDetailForm.aspx";
            var prm;	            
            prm = "?ACTION_ID=" + actionId;                         
            url += prm;	        
            var win = window.open(url,'_blank','scrollbars,resizable,height=470,width=550');
            win.focus();	        	        
        }
    </script>
    <cc1:ComValidator ID="ComValidator1" runat="server">
     <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtTeacherId">
        <cc1:ComAbsParamsAttribute Parameter="授课教师" />
    </cc1:CheckLongAttribute>
    </cc1:ComValidator>
        <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                (new TitleBar('SearchBar', '检索条件')).showBar();
                            </script>

                        </td>
                    </tr>
                    <tr>
                        <td style="width: 10%; background: #ffffff; height: 29px;"></td>
                        <td style="width: 15%; background: #ffffff; height: 29px;" class="list_data_bg_left" nowrap>课程名称：</td>
                        <td style="width: 25%; background: #ffffff; height: 29px;" align="left">&nbsp;<asp:TextBox ID="txtActName"
                            runat="server" MaxLength="100" Width="89px"></asp:TextBox></td>
                        <td style="width: 15%;background: #ffffff; height: 29px;" class="list_data_bg_left" nowrap>授课教师：</td>
                        <td align="left" style="width: 25%;background: #ffffff; height: 29px;">&nbsp;<asp:TextBox ID="txtTeacherId" runat="server" MaxLength="4" Width="88px"></asp:TextBox>
                            &nbsp;<asp:TextBox ID="txtTeacherName" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                                contentEditable="false" ForeColor="Black" Width="89px"></asp:TextBox><a href="#" onclick="javascript:popupTeacherSearch('<%=txtTeacherId.ClientID%>', '<%=txtTeacherName.ClientID %>' );">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td style="width: 10%; background: #ffffff; height: 29px;"></td>
                    </tr>
                    <tr>
                        <td style="background: #ffffff; height: 34px;"></td>
                        <td align="left" style="background: #ffffff; height: 34px;" class="list_data_bg_left" nowrap>课程分类：</td>
                        <td align="left" style="background: #ffffff; height: 34px;" nowrap>&nbsp;<asp:DropDownList ID="lstActType"
                            runat="server" Width="89px"　DataTextField="Content" DataValueField="DictNo">
                        </asp:DropDownList></td>
                        <td style="background: #ffffff; height: 34px;" class="list_data_bg_left" nowrap>开课日期：</td>
                        <td align="left" style="background: #ffffff; height: 34px;">&nbsp;<asp:TextBox ID="txtBeginDate" runat="server"
                            MaxLength="6" Width="89px" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                            ~
                            <asp:TextBox ID="txtEndDate" runat="server" Width="89px" MaxLength="6" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                        </td>
                        <td align="right" style="background: #ffffff; height: 34px;"></td>
                    </tr>

                </table>
            </td>
        </tr>
            <tr>
                <td></td>
            </tr>
        <tr>
            <td align="center"><asp:Button ID="btnNew" runat="server" Text=" 新 建 " CssClass="button" OnClick="btnNew_Click" />
                &nbsp;<asp:Button ID="btnSearch" runat="server" Text=" 检 索 " CssClass="button" OnClick="btnSearch_Click" />&nbsp;</td>
        </tr>
    </table>
    <div id="divResult">
        <table width="100%" id="tableResult" runat="server">
            <tr>
                <td align="left">

                    <script language="javascript">
                                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        CssClass="GridView_table" DataKeyNames="CurriculumId" BorderStyle="Solid" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
                        BorderWidth="3px" OnRowDataBound="viewSrhRst_RowDataBound" OnPageIndexChanging="viewSrhRst_PageIndexChanging" >
                        <Columns>
                            <asp:BoundField HeaderText="课程编号" DataField="CurriculumId" >
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="课程分类" DataField="CurriculumTypeText">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="课程名称" DataField="CurriculumName">
                                <ItemStyle CssClass="GridView_item_left" />
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                            </asp:BoundField>
                            
                            <asp:BoundField HeaderText="授课教师" DataField="TeacherName">
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_left" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="开课日期" DataField="BeginDate" DataFormatString="{0:yyyy/MM/dd}"
                                HtmlEncode="False">
                                <HeaderStyle Width="20%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="审批状态" DataField="">
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>                            
                            <asp:BoundField HeaderText="提交状态" DataField="">
                                <HeaderStyle Width="5%" CssClass="GridView_head_grayblue" />
                                <ItemStyle CssClass="GridView_item_center" />
                            </asp:BoundField>
                            <asp:CommandField ButtonType="Image" HeaderText="明细" SelectImageUrl="~/images/edit.jpg"
                                    SelectText="" ShowSelectButton="True">
                                    <ItemStyle CssClass="GridView_item_center" />
                                    <HeaderStyle CssClass="GridView_head_grayblue" Width="5%" />
                            </asp:CommandField>
                        </Columns>
                        <PagerSettings Mode="NumericFirstLast" />
                        <PagerStyle HorizontalAlign="Right" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
